package com.mall.service;

import com.mall.db.api.PmsSkuStockApi;
import com.mall.pojo.PmsSkuStock;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

@Service
public class PmsSkuStockService {

    @DubboReference
    private PmsSkuStockApi pmsSkuStockApi;

    //批量更新sku库存信息
    public void update(Integer pid, PmsSkuStock pmsSkuStock) {
        pmsSkuStockApi.update(pid,pmsSkuStock);
    }

    //根据商品ID及sku编码模糊搜索sku库存
    public PmsSkuStock selectById(Integer pid, String keyword) {
        return pmsSkuStockApi.selectById(pid,keyword);
    }
}
